#
# 雷达图
# @author shenyc
#

import numpy as np
import matplotlib.pyplot as plt

theta = np.array([0.25, 0.5, 0.75, 1.0, 1.25, 1.5, 1.75, 2, 0.25])
r = [75, 60, 50, 70, 50, 85, 45, 70, 75]
plt.polar(theta*np.pi, r, 'ro-', lw=2)   # ro表示形状为红色圆点,'ro-'中'-'表示极坐标点之间的连线
plt.fill(theta*np.pi, r, facecolor='#3f2', alpha=0.25)   # 填充
plt.ylim(0, 100)
plt.show()
